GtkStyleContext: Add gtk_render_frame_gap().
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 27 Mar 2010 20:24:22 +0000 (21:24 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:36:58 +0000 (15:36 +0100)
gtk/gtkstylecontext.c
gtk/gtkstylecontext.h

index cdf6c4b73bfde15be5d5ff7896ebf346d07e5b62..5969f8dad3bdcd508a5953a0f2f0f792be117e83 100644 (file)
@@ -798,5 +798,31 @@ gtk_render_slider (GtkStyleContext *context,
   engine_class->render_slider (priv->theming_engine, cr, x, y, width, height, orientation);
 }
 
+void
+gtk_render_frame_gap (GtkStyleContext *context,
+                      cairo_t         *cr,
+                      gdouble          x,
+                      gdouble          y,
+                      gdouble          width,
+                      gdouble          height,
+                      GtkPositionType  gap_side,
+                      gdouble          xy0_gap,
+                      gdouble          xy1_gap)
+{
+  GtkStyleContextPrivate *priv;
+  GtkThemingEngineClass *engine_class;
+
+  g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
+  g_return_if_fail (cr != NULL);
+
+  priv = GTK_STYLE_CONTEXT_GET_PRIVATE (context);
+  engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
+
+  _gtk_theming_engine_set_context (priv->theming_engine, context);
+  engine_class->render_frame_gap (priv->theming_engine, cr,
+                                  x, y, width, height, gap_side,
+                                  xy0_gap, xy1_gap);
+}
+
 #define __GTK_STYLE_CONTEXT_C__
 #include "gtkaliasdef.c"
index 710f689c4dc15f1b00c138a8322e93286fb597cc..bea4dc72f6b0278d73c058a46b7dfc70a767043d 100644 (file)
@@ -163,6 +163,15 @@ void gtk_render_slider   (GtkStyleContext *context,
                           gdouble          width,
                           gdouble          height,
                           GtkOrientation   orientation);
+void gtk_render_frame_gap (GtkStyleContext *context,
+                           cairo_t         *cr,
+                           gdouble          x,
+                           gdouble          y,
+                           gdouble          width,
+                           gdouble          height,
+                           GtkPositionType  gap_side,
+                           gdouble          xy0_gap,
+                           gdouble          xy1_gap);
 
 G_END_DECLS